package cn.lh.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 产品类型表
 * </p>
 *
 * @author linhong
 * @since 2025-04-16
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("t_product_type")
public class ProductTypeDto extends Model<ProductTypeDto> {

    private static final long serialVersionUID=1L;

      /**
     * 主键id
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 类型名称
     */
      private String name;


    @Override
    protected Serializable pkVal() {
          return this.id;
      }

}
